import request from '@/utils/request'



// 变更 地址 状态
export function changeAddressStatus(data) {
  return request({
    url: '/base/Address/changeAddressStatus',
    method: 'post',
    data: data
  })
}

// 新增地址
export function addAddress(data) {
  return request({
    url: '/base/Address',
    method: 'post',
    data: data
  })
}

// 修改地址
export function updateAddress(data) {
  return request({
    url: '/base/Address',
    method: 'put',
    data: data
  })
}

// 删除地址
export function delAddress(addressId) {
  return request({
    url: '/base/Address/' + addressId,
    method: 'delete'
  })
}

// 导出地址
export function exportAddress(query) {
  return request({
    url: '/base/Address/export',
    method: 'get',
    params: query
  })
}
